<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 *  
 * @package package_name
 * @author Mervin.Wong<mervin0502@163.com>
 * @copyright 
 * @license  http://www.apache.org/licenses/LICENSE-2.0
 * @version 0.1.0
 * @date 2013-2-28下午2:55:16
 *
 */
/**
 * CanGoo Option Class
 *
 * 获取系统设置的一些变量，以在视图中使用
 *
 * @package		Blog
 * @subpackage	libraries
 * @category	libraries
 * @author		Mervin.Wong<mervin0502@163.com>
 * @link		http://mervin.me/project/cangoo
 */
 class Option {
 	private $_CI;
 	public function __construct(){
 		$this->_CI = &get_instance();
 		$this->_CI->load->model('blog/option_model');
 	}
 	
 	public function index(){
 		return 'aaaa';
 	}
 	
 	public function site_title(){
 		$row = $this->_CI->option_model->get_one('value', 'options', array('name'=>'site_title', 'module'=>'blog'));
 		return $row['value'];
 	}
 	
 	public function site_description(){
 		$row = $this->_CI->option_model->get_one('value', 'options', array('name'=>'site_description', 'module'=>'blog'));
 		return $row['value'];
 	}
 	
 	public function site_keywords(){
 		$row = $this->_CI->option_model->get_one('value', 'options', array('name'=>'site_keywords', 'module'=>'blog'));
 		return $row['value'];
 	}
 }
 /* End of file Option.php*/
 /* Location:./apps/blog/libraries/Option.php*/
